package org.jeecg.modules.demo.feign.client;

import org.jeecg.common.api.vo.Result;
import org.jeecg.config.FeignConfig;
import org.jeecg.modules.demo.feign.factory.JeecgFeignDemoClientFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


//jeecg-boot-module-demo模块的服务名是 jeecg-demo
//@FeignClient(value = "jeecg-demo", configuration = FeignConfig.class,fallbackFactory = JeecgFeignDemoClientFactory.class)
@Component
public interface JeecgFeignDemoClient {

    @GetMapping(value = "/feignDemo/getMessage")
    Result<String> getMessage(@RequestParam(value = "name",required = false) String name);

}
